package com.ddd.test.dbo;

import java.io.Serializable;
//import net.sf.oval.constraint.NotBlank;
//import net.sf.oval.constraint.NotEmpty;
//import net.sf.oval.constraint.NotNull;
//import net.sf.oval.constraint.Size;

/**
 * 该类与数据库中的表sales_area对应
 *
 */
public class SalesAreaDO implements Serializable {

  private Long id;

//  @NotNull(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotEmpty(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotBlank(errorCode = "001", message = "[code]${parameter.not.null}")
//  @Size(min = 5, max = 50, errorCode = "001", message = "[name]${parameter.size.invalid}")
  private String area;
  
  private String salesCode;


  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getSalesCode() {
	    return salesCode;
	  }

  public void setSalesCode(String salesCode) {
	    this.salesCode = salesCode == null ? null : salesCode.trim();
  }
	  
  public String getArea() {
    return area;
  }

  public void setArea(String area) {
    this.area = area == null ? null : area.trim();
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", area=").append(area);
    sb.append(", salesCode=").append(salesCode);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}